/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dealer.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户经销商权限Entity
 * @author jyangye
 * @version 2018-02-07
 */
public class ViUserDealerPrivilege extends DataEntity<ViUserDealerPrivilege> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户编号
	private String dealerRelationId;		// 经销商关系
	private String dealerPrivilegeKind;		// 权限类型
	
	public ViUserDealerPrivilege() {
		super();
	}

	public ViUserDealerPrivilege(String id){
		super(id);
	}


    @NotNull(message="用户编号不能为空")
    @ExcelField(title="用户编号", align=2, sort=20)
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

	
	@Length(min=1, max=11, message="经销商关系长度必须介于 1 和 11 之间")
	@ExcelField(title="经销商关系", align=2, sort=30)
	public String getDealerRelationId() {
		return dealerRelationId;
	}

	public void setDealerRelationId(String dealerRelationId) {
		this.dealerRelationId = dealerRelationId;
	}
	
	@Length(min=1, max=1, message="权限类型长度必须介于 1 和 1 之间")
	@ExcelField(title="权限类型", align=2, sort=40)
	public String getDealerPrivilegeKind() {
		return dealerPrivilegeKind;
	}

	public void setDealerPrivilegeKind(String dealerPrivilegeKind) {
		this.dealerPrivilegeKind = dealerPrivilegeKind;
	}
	
}